package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ParkAreaRowMapper implements RowMapper<ParkArea> {

    @Override
    public ParkArea mapRow(ResultSet rs, int rowNum) throws SQLException {
        ParkArea pa = new ParkArea();
        pa.setId(rs.getInt("id"));
        pa.setCode(rs.getString("code"));
        pa.setName(rs.getString("name"));
        pa.setAddress(rs.getString("address"));
        pa.setStatus(rs.getInt("status"));
        pa.setCreate_time(rs.getTimestamp("create_time"));
        pa.setStrcode(rs.getString("strcode"));
        pa.setTimetable(rs.getString("timetable"));
        return pa;
    }

}
